package cn.ichiva.puppet.example.base.p1;

import javafx.fxml.FXML;
import javafx.fxml.impl.AbstractPuppetComponent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 条件渲染,事件绑定
 */
public class L5P2ForComponent extends AbstractPuppetComponent {

    @Override
    public CharSequence render() {
        imports(VBox.class, Label.class, Button.class);
        return """
                <VBox>
                    <Label text="${index}" for="index : 10" />
                </VBox>
                """;
    }
}
